package com.youlai.system.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

@Schema(description = "我的员工视图对象")
@Data
public class EmployVO {

    @Schema(description = "员工ID")
    private Integer id;
    @Schema(description = "手机号")
    private String mobile;
    @Schema(description = "员工姓名")
    private String username;

    @Override
    public String toString() {
        return "EmployVO{" +
                "id=" + id +
                ", mobile='" + mobile + '\'' +
                ", username='" + username + '\'' +
                ", staffPhoto='" + staffPhoto + '\'' +
                ", workNumber='" + workNumber + '\'' +
                ", departmentId=" + departmentId +
                ", departmentName='" + departmentName + '\'' +
                ", timeOfEntry=" + timeOfEntry +
                ", formOfEmployment=" + formOfEmployment +
                '}';
    }

    @Schema(description = "头像")
    private String staffPhoto;
    @Schema(description = "工号")
    private String workNumber;
    @Schema(description = "部门id")
    private Integer departmentId;


    @Schema(description = "部门名称")
    private String departmentName;

    @Schema(description="入职时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime timeOfEntry;
    @Schema(description="聘用形式")
    private Integer formOfEmployment;
    @Schema(description="离职时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDateTime timeOfOut;
}
